import re

html = '''<div class="animal">
    <p class="name">
        <a title="Tiger"></a>
    </p>

    <p class="content">
        Two tigers two tigers run fast
    </p>
</div>

<div class="animal">
    <p class="name">
        <a title="Rabbit"></a>
    </p>

    <p class="content">
        Small white rabbit white and white
    </p>
</div>'''

p = re.compile('<div class="animal">.*?title="(.*?)".*?content">(.*?)</p>.*?</div>',re.S)
r_list = p.findall(html)

# for rt in r_list:
#     print('动物名称:', rt[0].strip())
#     print('动物描述:', rt[1].strip())
#     print('*' * 50)

for name, describe in r_list:
    print('动物名称:', name)
    print('动物描述:', describe.strip())